const mongoose = require("mongoose")

const CollectSchema = mongoose.Schema({
    // 用户id
    userId: {
        type: mongoose.Schema.Types.ObjectId,
        require: true,
        ref: "user"
    },
    // 酒店的id
    hotelId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "hotel"
    },

});

const Collect = mongoose.model("collect", CollectSchema);

module.exports = Collect